package com.wlps.service;

import com.wlps.entity.MissionList;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wlps.result.ResultPageVo;
import com.wlps.result.ResultVo;
import com.wlps.vo.ReceiptVo;
import com.wlps.vo.warehousecenter.pickup.MissionListVo;
import com.wlps.vo.warehousecenter.pickup.PickupVo;
import com.wlps.vo.warehousecenter.warehoused.WarehousedVo;

import java.util.List;

/**
 * <p>
 * 任务单表(mission_list)
 * (1.当任务单状态为已分配时，不可以再进行该用例。)
 * (2.当订单形成任务单，分配具体执行任务的配送员。) 服务类
 * </p>
 *
 * @author ZWYZY
 * @since 2020-07-31
 */
public interface IMissionListService extends IService<MissionList> {
    /**
     * 分页显示任务单
     *
     * @param pageNum
     * @param pageSize
     * @param id
     * @return
     */
    ResultPageVo<List<MissionListVo>> getMissionList(int pageNum, int pageSize, Long id);

    /**
     * 分页显示退货任务单
     *
     * @param pageNum
     * @param pageSize
     * @param id
     * @return
     */
    ResultPageVo<List<WarehousedVo>> getWarehousedVo(int pageNum, int pageSize, Long id);

    /**
     * 领货登记
     *
     * @param pickupVo
     * @return
     */
    ResultVo editPickupVo(PickupVo pickupVo);

    /**
     * 确认退货
     *
     * @param id
     * @return
     */
    ResultVo editWarehousedVo(Long id);

    ReceiptVo recepitById(long id);
}
